from ogreEx.blender.types import Panel
from ogreEx.config import _CONFIG_TAGS_
from ogreEx.ui.UIClass import UI

@UI
class PANEL_Configure(Panel):
    bl_space_type = 'PROPERTIES'
    bl_region_type = 'WINDOW'
    bl_context = "scene"
    bl_label = "Ogre Configuration File"
    
    def draw(self, context):
        layout = self.layout
        op = layout.operator( 'ogre.save_config', text='update config file', icon='FILE' )
        for tag in _CONFIG_TAGS_:
            layout.prop( context.window_manager, tag )